home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / mudlib / sys / files.h < prev    next >
C/C++ Source or Header  |  2001-07-14  |  768b  |  25 lines

  1. #ifndef LPC_FILES_H_
  2. #define LPC_FILES_H_ 1
  3.  
  4. /* Definitions and macros for the various file efuns */
  5.  
  6. /* Special return values of file_size() and the size part of get_dir().
  7.  */
  8.  
  9. #define FSIZE_NOFILE  -1  /* File doesn't exist or is not readable */
  10. #define FSIZE_DIR     -2  /* The file is actually a directory */
  11.  
  12.  
  13. /* Flag values for get_dir().
  14.  */
  15.  
  16. #define GETDIR_EMPTY      0  /* return an empty array (not very useful) */
  17. #define GETDIR_NAMES      1  /* return the filenames */
  18. #define GETDIR_SIZES      2  /* return the file sizes */
  19. #define GETDIR_DATES      4  /* return the dates of last modification */
  20. #define GETDIR_UNSORTED  32  /* return the results unsorted */
  21.  
  22. #define GETDIR_ALL        7  /* return names, sizes and dates */
  23.  
  24. #endif /* LPC_FILES_H_ */
  25.